package com.spring.daily.web.model;

import java.util.Date;

import org.hibernate.validator.constraints.NotBlank;

import com.spring.security.core.validators.Update;

public class WeeklyRecordWithBLOBs extends WeeklyRecord {
    private String teacherComment;
    private String parentsComment;
    
    public String getTeacherComment() {
        return teacherComment;
    }

    public void setTeacherComment(String teacherComment) {
        this.teacherComment = teacherComment == null ? null : teacherComment.trim();
    }

    public String getParentsComment() {
        return parentsComment;
    }

    public void setParentsComment(String parentsComment) {
        this.parentsComment = parentsComment == null ? null : parentsComment.trim();
    }
    public WeeklyRecordWithBLOBs(){};
    
    public WeeklyRecordWithBLOBs(WeeklyRecordBase weeklyRecordBase){
    	this.courseClassid=weeklyRecordBase.getCourseClassid();
    	this.babyId=weeklyRecordBase.getBabyId();
    	this.babyName=weeklyRecordBase.getBabyName();
    	this.babyEnglishName=weeklyRecordBase.getBabyEnglishName();
    	this.teacherId=weeklyRecordBase.getTeacherId();
    	this.teacherName=weeklyRecordBase.getTeacherName();
    	this.teacherComment=weeklyRecordBase.getTeacherComment();
    	this.recordDate= new Date(weeklyRecordBase.getRecordDate()*1000);
    }
}